$(document).ready(function () {
    //console.log($.cookie("id"));

    /**
     * 新闻详情：
     *          href="'http://39.108.233.68:8002/news/selOne?id='+i.id"
     *          新闻标题
     *          新闻发布时间
     *          新闻发布人
     *          新闻内容
     */
    var news = new Vue({
        el: "#news",
        data: {
            news: {}
        },
        created: function () {
            this.showNews();
        },
        methods: {
            showNews: function () {
                var that = this;
                axios.get("http://39.108.233.68:8002/news/selOne?id=" + window.localStorage.getItem("id")).then(
                    function (response) {
                        console.log(response.data.data);
                        that.news = response.data.data;
                    }, function (err) {
                        console.log(err);
                    }
                )
            }
        }
    })
});